package com.ttg.web.dao.Impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ttg.common.entities.BasePage;
import com.ttg.model.mapper.AdminChannelMapper;
import com.ttg.model.pojo.AdminChannel;
import com.ttg.model.vo.RoleAuthResVO;
import com.ttg.web.dao.AdminChannelDao;
import org.apache.commons.lang3.StringUtils;
import org.springframework.stereotype.Service;

import java.util.ArrayList;
import java.util.List;
import java.util.Objects;

/**
 * @author ZQ
 * @version 1.0
 * @Description
 * @date 2021/3/5 10:11
 */
@Service
public class AdminChannelDaoImpl extends ServiceImpl<AdminChannelMapper, AdminChannel> implements AdminChannelDao {


    @Override
    public List<RoleAuthResVO> roleAuthByTypeList(String lang) {
        return baseMapper.roleAuthByTypeList(lang);
    }

    @Override
    public List<AdminChannel> findChannelName(String langZhCn) {
        return baseMapper.findChannelName(langZhCn);
    }

    @Override
    public List<Long> findChlIdByChannelName(String keyWord, String langZhCn) {
        return baseMapper.findChlIdByChannelName(keyWord,langZhCn);
    }

}
